package user;

import Operation.*;
import book.Bookshelf;

import java.util.Scanner;

public class normal extends User{

    public normal(String name) {
        super(name);
        this.ioOperations = new IoOperation[] {
                new exit(),
                new lend(),
                new restore(),
                new search(),
                new displaytion()
        };
    }


    @Override
    public int menu() {
        System.out.println("欢迎" + this.name + "来到普通成员菜单！！请输入你的操作：");
        System.out.println("1.借阅图书");
        System.out.println("2.归还图书");
        System.out.println("3.查找图书");
        System.out.println("4.显示图书");
        System.out.println("0.退出系统");

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的操作：");
        int choice = scanner.nextInt();
        return choice;
    }
}
